<?php

use think\facade\Route;
use app\admin\middleware\LoginMiddleware;
use app\admin\middleware\AuthMiddleware;
use app\admin\middleware\OperationLog;

Route::group('channel', function () {

    //获取H5渠道配置
    Route::get('getH5Config', 'channel.H5/getH5Config');
    //设置H5渠道配置
    Route::post('setH5Config', 'channel.H5/setH5Config');

    //获取PC渠道配置
    Route::get('getPcConfig', 'channel.Pc/getPcConfig');
    //设置PC渠道配置
    Route::post('setPcConfig', 'channel.Pc/setPcConfig');

    //获取微信小程序渠道配置
    Route::get('getAppletConfig', 'channel.Applet/getAppletConfig');
    //设置微信小程序渠道配置
    Route::post('setAppletConfig', 'channel.Applet/setAppletConfig');

    //获取微信公众号渠道配置
    Route::get('getWechatConfig', 'channel.Wechat/getWechatConfig');
    //设置微信公众号渠道配置
    Route::post('setWechatConfig', 'channel.Wechat/setWechatConfig');

    //获取微信开放平台渠道配置
    Route::get('getWxopenConfig', 'channel.Wxopen/getWxopenConfig');
    //设置微信开放平台渠道配置
    Route::post('setWxopenConfig', 'channel.Wxopen/setWxopenConfig');

})->middleware([
    LoginMiddleware::class,
    AuthMiddleware::class,
    OperationLog::class
]);